<js href="__PUBLIC__/js/jquery-2.0.2.js" />
    <js href="__PUBLIC__/ueditor/ueditor.config.js" />    
    <js href="__PUBLIC__/ueditor/ueditor.all.min.js" />
    <script>
    $(function(){
        var ue = UE.getEditor('container',{
            serverUrl :'{:U('Index/	Question/ueditor')}'
        });
    })
    </script>
 <import type='css' file="Css.main" />
 <import file="Js.public,Js.Markdown_Converter,Js.Markdown_Sanitizer,Js.Markdown_Editor,Js.fileupload" />
<div class="aw-container-wrap">
	<div class="container aw-publish">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="col-sm-12 col-md-9 aw-main-content">
					<!-- tab 切换 -->
					<ul class="nav nav-tabs aw-nav-tabs active">
												<li><a href="http://nuke.cgspread.com/publish/article/">文章</a></li>
												<li class="active"><a href="./发布 - Nuke中文社区_files/发布 - Nuke中文社区.html">问题</a></li>
						<h2 class="hidden-xs"><i class="icon icon-ask"></i> 发起</h2>
					</ul>
					<!-- end tab 切换 -->
					<form action="{:U('Index/Question/index')}" method="post" id="question_form">
						<input type="hidden" name="post_hash" value="4f978acf5dfac4a0">
						<input type="hidden" name="attach_access_key" value="a989085ac2fcfab1fa25bf8bca8728b7">
						<input type="hidden" name="question_id" id="question_id" value="">
						<input type="hidden" name="ask_user_id" value="">
						<select name="category_id" class="hide" id="category_id">
						<option value="0">- 请选择分类 -</option>
						<?php foreach($categorys as $value) { ?>
      						<option value="<?php echo $value['id']?>"><?php echo $value['cname']?></option>
     					<?php }?>					
						</select>
						<div class="aw-mod aw-mod-publish">
							<div class="mod-body">
								<h3>问题标题:</h3>
								<!-- 问题标题 -->
								<div class="aw-publish-title">
									<div id="question_title">
										<input type="text" placeholder="问题标题..." name="question_content" id="question_contents" value="" class="form-control">
										<div class="aw-publish-suggest-question hide">
											<p class="text-color-999">你的问题可能已经有答案</p>
											<ul class="aw-dropdown-list">
											</ul>
										</div>
									</div>
									<div class="dropdown" id="dropdown">
										<div class="dropdown-toggle" data-toggle="dropdown">
												<select name="category_id" id="category_id">
												<option value="0">- 请选择分类 -</option>
												<?php foreach($categorys as $value) { ?>
						      						<option value="<?php echo $value['id']?>"><?php echo $value['cname']?></option>
						     					<?php }?>					
												</select>
										</div>
									</div>
								</div>
								<!-- end 问题标题 -->

								<h3>问题补充 (选填):</h3>
								<div class="aw-mod aw-editor-box" id="container">
									<!-- 百度编辑器处 -->
								</div>


								<h3>添加话题:</h3>
								<div class="aw-topic-bar active" data-type="publish">
									<div class="topic-bar clearfix">
										<?php foreach ($res_tip as $key => $value) {?>	
										<span class="topic-tag" name="topic-tag" >
											<input type="checkbox" value="<?php echo $value['id'] ?>" name="topic_list[]" data-id="<?php echo $value['id'] ?>"/>
											<?php echo $value['tname']?>	
										</span>	
										<?php }?>
								    </div>
								</div>							
							  </div>
							<div class="mod-footer clearfix">
								<a href="http://nuke.cgspread.com/integral/rule/" target="_blank">[积分规则]</a>								<span class="aw-anonymity">
																		
								</span>
								<input type="submit" name="submit" value="确认发起" class="btn btn-large btn-success btn-publish-submit" id="publish_submit"/>
							</div>
						</div>
					</form>
				</div>
				<!-- 侧边栏 -->
				<div class="col-sm-12 col-md-3 aw-side-bar hidden-xs">
					<!-- 问题发起指南 -->
					<div class="aw-mod publish-help">
						<div class="mod-head">
							<h3>问题发起指南</h3>
						</div>
						<div class="mod-body">
							<p><b>• 问题标题:</b> 请用准确的语言描述您发布的问题思想</p>
							<p><b>• 问题补充:</b> 详细补充您的问题内容, 并提供一些相关的素材以供参与者更多的了解您所要问题的主题思想</p>
							<p><b>• 选择话题:</b> 选择一个或者多个合适的话题, 让您发布的问题得到更多有相同兴趣的人参与. 所有人可以在您发布问题之后添加和编辑该问题所属的话题</p>
														<p><b>• 关于积分：</b> 发起一个问题会消耗您 20 个积分, 每多一个回复你将获得 5 个积分的奖励 ,为了您的利益, 在发起问题的时候希望能够更好的描述您的问题以及多使用站内搜索功能.</p>
													</div>
					</div>
					<!-- end 问题发起指南 -->
				</div>
				<!-- end 侧边栏 -->
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
	var ATTACH_ACCESS_KEY = 'a989085ac2fcfab1fa25bf8bca8728b7';
	var CATEGORY_ID = 0;
	var PUBLISH_TYPE = 'question';
</script>

<textarea tabindex="-1" style="position: absolute; top: -999px; left: 0px; right: auto; bottom: auto; border: 0px; padding: 0px; box-sizing: content-box; word-wrap: break-word; overflow: hidden; transition: none; height: 0px !important; min-height: 0px !important; font-family: &#39;Helvetica Neue&#39;, STHeiti, &#39;Microsoft YaHei&#39;, Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; font-style: normal; letter-spacing: 0px; text-transform: none; word-spacing: 0px; text-indent: 0px; line-height: 20px; width: 678.5px;" class="autosizejs"></textarea></body></html>